#pg { margin-left: 50px; position: relative; height: 700px; width: 98%;
    background-color: #ffffff;
    border-radius: 5px;
}
#pg li { position: relative; list-style: none; width: 175px; height: 117px; overflow: hidden; float: left; z-index: 2; opacity: .3; }
#pg li.active { opacity: 1; }
#pg li.selected { opacity: 1; z-index: 99; -moz-box-shadow: 0px 0px 10px #8b2393; -webkit-box-shadow: 0px 0px 10px #8b2393; }
#pg li img { display: block; width: 100%; }
#pg li p { color: black; margin: 10px 0; font-size: 12px; }